package com.yuanheng100.ems4j.web;

import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"classpath:applicationContext.xml"})
public class BaseTestService
{
    public final static Integer MESSAGE_APPID = 1;
    public final static String MESSAGE_APPNAME = "消息系统";

    public final static Integer SETTLEMENT_APPID = 2;
    public final static String SETTLEMENT_APPNAME = "结算系统";

    public final static Integer COMPANY_DEPARTMENT_DEPID = 1;

    public static Integer nThreads = 10;
    public static ThreadPoolExecutor executorService = null;

    static
    {
        executorService = (ThreadPoolExecutor) Executors.newFixedThreadPool(nThreads);
    }
}
